let movies;
let types;
let operas;
$.ajax({
    url: 'https://www.fastmock.site/mock/bb4157f45a0b5ffdcb3f6d984517a6c0/woniuMovie/getAllMovies',
    success: (data) => {
        movies = data.movies;
        let movie = movies.filter(move => move.id == "1292213");
        console.log(movie[0]);
        $(".title").append($(
            `<img src="${movie[0].imgSrc}" alt="">
            <div>
                <div>订单号：<span> ${movie[0].id}</span></div>
                <p>${movie[0].title}</p>
                <p>成都双楠电影城 • 英文 2D</p>
            </div>`
        ));
    }
});
$.ajax({
    url: 'https://www.fastmock.site/mock/bb4157f45a0b5ffdcb3f6d984517a6c0/woniuMovie/getAllTypes',
    success: (data) => {
        types = data.types;
        console.log(types);
    }
});
$.ajax({
    url: 'https://www.fastmock.site/mock/bb4157f45a0b5ffdcb3f6d984517a6c0/woniuMovie/getAllOperas',
    success: (data) => {
        operas = data.operas;
        console.log(operas);
    }
});